package gen.core.models;

public class Cell {
	private Object data = null;
	private int index = -1;

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public Cell(){
		
	}
	
	public void setData(Object data){
		this.data = data;
	}
	
	public String toString(){
		return getDataStr("'");
	}

	public Object getData() {
		return data;
	}
	
	public String getDataStr(String quote){
		if(this.data instanceof String){
			return quote+this.data+quote;
		}		
		return this.data+"";
	}
}
